﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.ApplicationBlocks.Data;
using ClassProject.Entity;

namespace ClassProject.DAL
{
    class BannerDetailsDAL : ADONET
    {
        BannerDetailsEn en = new BannerDetailsEn();
        public BannerDetailsDAL()
        {
        }
        public int Insert()
        {

            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Insert_BannerDetails", en.BannerID, en.AdminID, en.UserUpdate, en.UserDelete, en.LastInsert, en.LastUpdate, en.LastDelete);
            return i;
        }
        public int Update()
        {

            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Update_BannerDetails", en.BannerID, en.AdminID, en.UserUpdate, en.UserDelete, en.LastInsert, en.LastUpdate, en.LastDelete);
            return i;
        }

        public int Delete()
        {

            int i = SqlHelper.ExecuteNonQuery(this._strCon, "sp_Delete_BannerDetails", en.BannerID,en.AdminID);
            return i;
        }
    }
}
